//
//  SNUserInfoModel.h
//  project
//
//  Created by 黄建华 on 2017/12/14.
//  Copyright © 2017年 黄建华. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SNWeatherModel : NSObject
@property (nonatomic, assign) NSInteger orderIndex;
@property(nonatomic, strong) NSString   *weatherInfo;
@property(nonatomic, strong) NSString   *maxTem;
@property(nonatomic, strong) NSString   *minTem;
@property(nonatomic, strong) NSString   *weatherCode;
@property(nonatomic, strong) NSString   *tem;
@property(nonatomic, strong) NSString   *dateString;

@end

// 闹钟模型
@interface SNAlarmModel : NSObject
@property (nonatomic, assign) NSInteger orderIndex;
@property (nonatomic, assign) BOOL      open;
@property (nonatomic, assign) BOOL      SUN;
@property (nonatomic, assign) BOOL      SAT;
@property (nonatomic, assign) BOOL      FRI;
@property (nonatomic, assign) BOOL      THU;
@property (nonatomic, assign) BOOL      WED;
@property (nonatomic, assign) BOOL      TUE;
@property (nonatomic, assign) BOOL      MON;
@property (nonatomic, assign) BOOL      Once;        // 一次
@property (nonatomic, assign) NSInteger hours;
@property (nonatomic, assign) NSInteger mins;
@property (nonatomic, assign) NSInteger activeType;  // 标签类型
@property (nonatomic, strong) NSString  *info;       // 其他编辑
@property (nonatomic, strong) NSDate    *date;       // 日期
@property (nonatomic, strong) NSString  *dateString; // 日期字符串
@end

// 日程模型
@interface SNcalendarModel : NSObject
@property (nonatomic, assign) NSInteger  orderIndex;
@property (nonatomic, assign) BOOL       open;
@property (nonatomic, assign) NSUInteger year;
@property (nonatomic, assign) NSInteger  month;
@property (nonatomic, assign) NSInteger  day;
@property (nonatomic, assign) NSInteger  hours;
@property (nonatomic, assign) NSInteger  mins;
@property (nonatomic, assign) NSInteger  activeType; // 标签类型
@property (nonatomic, strong) NSString   *info;     // 其他编辑
@property (nonatomic, strong) NSDate     *date;   // 其他编辑
@end

//用户模型
@interface SNUserInfoModel : NSObject
+ (SNUserInfoModel *)getUserInfoFromDBWithUserID:(NSString *)userID;

@property (nonatomic, strong) NSString  *access_token;
@property (nonatomic, strong) NSString  *user_id;
@property (nonatomic, strong) NSString  *nickName;
@property (nonatomic, assign) NSInteger gender;     // 1为男 2为女 默认男属性
@property (nonatomic, assign) NSInteger height;
@property (nonatomic, assign) NSInteger weight;
@property (nonatomic, strong) NSString  *birthday;      // 1990-01-01
@property (nonatomic, strong) NSString  *job;
@property (nonatomic, strong) NSString  *address;
@property (nonatomic, strong) NSString  *sign;          // 签名
@property (nonatomic, strong) NSString  *showSign;
@property (nonatomic, assign) NSInteger age;
@property (nonatomic, strong) NSString  *tel;
@property (nonatomic, strong) NSString  *imgUrl;
@property (nonatomic, strong) NSString  *email;
@property (nonatomic, strong) NSString  *account;
@property (nonatomic, assign) NSInteger is_first;
@property (nonatomic, assign) NSInteger app_id;

@property (nonatomic, assign) BOOL      isMetricSystem;  //  公制为NO 英制为YES
@property (nonatomic, assign) BOOL      is12Time;       //  24小时为NO 12小时为YES
@property (nonatomic, assign) int lanuage;        // 语言 0中文 1英文 其他
@property (nonatomic, assign) int lanuage2;       // 语言 0中文 1英文 其他
@property (nonatomic, strong) NSString  *portrait;      // 头像
@property (nonatomic, strong) UIImage   *headImage;     // 头像 目前为本地的
@property (nonatomic, strong) NSDate    *registerDate;

@property (nonatomic, assign) BOOL heart;               // 产品是否含心率功能
@property (nonatomic, assign) BOOL airPressure;         // 产品是否含气压功能
@property (nonatomic, assign) BOOL oxygen;              // 产品是否含血氧功能
@property (nonatomic, assign) BOOL bistoryPressure;     // 产品是否含血压功能
@property (nonatomic, assign) BOOL ancs;                // 产品是否支持消息推送功能
@property (nonatomic, assign) BOOL heartFunction;                   // 心率大数据 0位无 1为 有;
@property (nonatomic, assign) BOOL oxFunction;                      // 血氧大数据 0位无 1为 有;
@property (nonatomic, assign) BOOL bpFunction;                      // 血压大数据 0位无 1为 有;
@property (nonatomic, assign) BOOL sportModeFunction;                      // 运动模式 0位无 1为 有;

@property (nonatomic, strong) NSString  *weightTime; //填写体重的时间
@property (nonatomic, strong) NSString  *BMI;
@property (nonatomic, assign) BOOL      hand;
@property (nonatomic, assign) BOOL      phoneNotice;
@property (nonatomic, assign) BOOL      smsNotice;
@property (nonatomic, assign) BOOL      ancsNotice;
@property (nonatomic, assign) BOOL      lowElecNotice;  // 低电
@property (nonatomic, assign) BOOL      lostNotice;  // 防丢
@property (nonatomic, assign) BOOL      liftNotice;  // 抬腕亮屏
@property (nonatomic, assign) BOOL      heartAutoCheck;  // 心率自动检测
@property (nonatomic, assign) BOOL      autoUpdateData;  // 自动同步
@property (nonatomic, assign) BOOL      appAutoUpdate;  // app自动更新
@property (nonatomic, assign) BOOL      temperatureSet;  // NO 为摄氏度 YES为华氏度
@property (nonatomic, assign) BOOL      weightunitSet; //NO 为千克 YES 为磅
@property (nonatomic, assign) BOOL      changeScreen;  // 翻腕切屏
@property (nonatomic, assign) NSInteger checkTime;  // 心率 血氧 检测时间 默认是30秒 血压是60秒
@property (nonatomic, assign) BOOL      boolShoWeatherInfo;  // 是否显示天气信息
@property (nonatomic, assign)  BOOL     boolLightScreen;     //手机屏幕常亮
//免打扰
@property(nonatomic, assign) NSInteger isOpen;          //开关是否开启
@property(nonatomic, assign) NSInteger startH;
@property(nonatomic, assign) NSInteger startM;
@property(nonatomic, assign) NSInteger endH;
@property(nonatomic, assign) NSInteger endM;

@property (nonatomic, assign) NSInteger target_step;    // 目标步数
@property (nonatomic, assign) NSInteger target_sleep;   // 目标睡眠

@property (nonatomic, assign) NSInteger max_step;         //个人最佳纪录
@property (nonatomic, strong) NSString  *max_step_date;  //个人最佳纪录日期
@property (nonatomic, assign) NSInteger max_reach_times;  //连续达标天数
@property (nonatomic, strong) NSString  *max_reach_start;  //连续达标天数开始日期
@property (nonatomic, strong) NSString  *max_reach_end;  //连续达标天数结束日期
@property (nonatomic, assign) NSInteger max_week_step;         //最佳星期步数
@property (nonatomic, strong) NSString  *max_week_start;  //最佳星期开始日期
@property (nonatomic, strong) NSString  *max_week_end;  //最佳星期结束日期
@property (nonatomic, assign) NSInteger max_month_step;         //最佳月份步数
@property (nonatomic, strong) NSString  *max_month;  //最佳月份

@property (nonatomic, strong) NSString *loginAccount;
@property (nonatomic, strong) NSString *loginPassword;
@property (nonatomic, assign) BOOL     isFirstSetUserInfo;    //是否第一次设置用户信息
@property (nonatomic, strong) NSData   *lastBLEhead;          // 绑定的设备广播头
@property (nonatomic, strong) NSString *currentAppVersion;     // 当前APP版本
@property (nonatomic, strong) NSString *lastOnlineAppVersion;  // 最新软件版本
@property (nonatomic, strong) NSString *lastUpdateTime;

//升级包广播 升级客户ID
@property (nonatomic, assign) NSInteger bleBatteryQuantity;
@property (nonatomic, strong) NSString  *create_time;

// 该用户的运动天数 来自服务器的
@property (nonatomic, assign) NSInteger sport_days;

//喝水
@property (nonatomic, assign) BOOL      drinkOpen;
@property (nonatomic, assign) BOOL      drinkSUN;
@property (nonatomic, assign) BOOL      drinkSAT;
@property (nonatomic, assign) BOOL      drinkFRI;
@property (nonatomic, assign) BOOL      drinkTHU;
@property (nonatomic, assign) BOOL      drinkWED;
@property (nonatomic, assign) BOOL      drinkTUE;
@property (nonatomic, assign) BOOL      drinkMON;
@property (nonatomic, assign) BOOL      drinkOnce; // 一次
@property (nonatomic, assign) NSInteger drinkStartHour1;
@property (nonatomic, assign) NSInteger drinkStartMins1;
@property (nonatomic, assign) NSInteger drinkEndHour1;
@property (nonatomic, assign) NSInteger drinkEndMins1;
@property (nonatomic, assign) NSInteger drinkStartHour2;
@property (nonatomic, assign) NSInteger drinkStartMins2;
@property (nonatomic, assign) NSInteger drinkEndHour2;
@property (nonatomic, assign) NSInteger drinkEndMins2;
@property (nonatomic, assign) NSInteger drinkStartHour3;
@property (nonatomic, assign) NSInteger drinkStartMins3;
@property (nonatomic, assign) NSInteger drinkEndHour3;
@property (nonatomic, assign) NSInteger drinkEndMins3;
@property (nonatomic, assign) NSInteger drinkinterval;
@property (nonatomic, strong) NSString  *showDrinkTime;

@property (nonatomic, assign) BOOL      sedentaryOpen;
@property (nonatomic, assign) BOOL      sedentarySUN;
@property (nonatomic, assign) BOOL      sedentarySAT;
@property (nonatomic, assign) BOOL      sedentaryFRI;
@property (nonatomic, assign) BOOL      sedentaryTHU;
@property (nonatomic, assign) BOOL      sedentaryWED;
@property (nonatomic, assign) BOOL      sedentaryTUE;
@property (nonatomic, assign) BOOL      sedentaryMON;
@property (nonatomic, assign) BOOL      sedentaryOnce; // 一次
@property (nonatomic, assign) NSInteger sedentaryStartHour1;
@property (nonatomic, assign) NSInteger sedentaryStartMins1;
@property (nonatomic, assign) NSInteger sedentaryEndHour1;
@property (nonatomic, assign) NSInteger sedentaryEndMins1;
@property (nonatomic, assign) NSInteger sedentaryStartHour2;
@property (nonatomic, assign) NSInteger sedentaryStartMins2;
@property (nonatomic, assign) NSInteger sedentaryEndHour2;
@property (nonatomic, assign) NSInteger sedentaryEndMins2;
@property (nonatomic, assign) NSInteger sedentaryStartHour3;
@property (nonatomic, assign) NSInteger sedentaryStartMins3;
@property (nonatomic, assign) NSInteger sedentaryEndHour3;
@property (nonatomic, assign) NSInteger sedentaryEndMins3;
@property (nonatomic, assign) NSInteger sedentaryinterval;
@property (nonatomic, strong) NSString  *showSedentaryTime;

@property (nonatomic, strong) NSMutableArray *alarmArray;
@property (nonatomic, strong) NSMutableArray *calendarArray;
@property (nonatomic, strong) NSArray        *historyCalendarArray;

@property (nonatomic, strong) NSMutableArray *showAlarmArray;
@property (nonatomic, strong) NSMutableArray *showCalendarArray;
@property (nonatomic, strong) NSMutableArray *historyArray;
@property (nonatomic, strong) NSMutableArray *weatherArray;
+ (SNUserInfoModel *)parseString:(NSString *)string;

// 食谱
@property (nonatomic, assign) NSInteger goal_weight;
@property (nonatomic, assign) NSInteger goal_calory;
@property (nonatomic, strong) NSString *first_meal_date;
@property (nonatomic, assign) NSInteger total_meal_day;


//2019.02.26 显示防丢提醒按钮 默认显示
@property (nonatomic, assign) BOOL showBleLost;
@property (nonatomic, assign) BOOL showLanuage;
@property (nonatomic, strong) NSArray *lanuageArray;
// 2019.05.20   屏保
@property (nonatomic, assign) BOOL wallpaper;
// 2019.06.11   运动模式  0不显示  1显示
@property (nonatomic, assign) BOOL isSupportSportMode;
// 2019.06.12   APP与单位设置 0不显示  1显示
@property (nonatomic, assign) BOOL isSupportSettingTimeUnit;
// 2019.06.12  关联天猫精灵入口 0不显示  1显示
@property (nonatomic, assign) BOOL isSupportTianMao;
// 2019.07.04  是否否支持食谱 0不显示  1显示
@property (nonatomic, assign) BOOL isSupporFood;
@property (nonatomic, assign) NSInteger screen_type;


//    _titleArr = @[HHH_Text(@"来电提醒"), HHH_Text(@"短信提醒"), HHH_Text(@"免打扰开关"), HHH_Text(@"Instagram"), @"Email", HHH_Text(@"Facebook"), HHH_Text(@"Wechat"), HHH_Text(@"Line"), HHH_Text(@"Weibo"), HHH_Text(@"Linkin"), HHH_Text(@"QQ"), HHH_Text(@"WhatsApp"), HHH_Text(@"Viber"), HHH_Text(@"Others")];
@property (nonatomic, assign) BOOL Instagram;
@property (nonatomic, assign) BOOL Emails;
@property (nonatomic, assign) BOOL Facebook;
@property (nonatomic, assign) BOOL Wechat;
@property (nonatomic, assign) BOOL Line;
@property (nonatomic, assign) BOOL Weibo;
@property (nonatomic, assign) BOOL Linkin;
@property (nonatomic, assign) BOOL QQ;
@property (nonatomic, assign) BOOL WhatsApp;
@property (nonatomic, assign) BOOL Viber;
@property (nonatomic, assign) BOOL Others;
@property (nonatomic, assign) BOOL isNewAncs;

@end

